package com.zhz.company.contract.enums;

import com.zhz.common.tool.mybatisplus.base.core.enums.EnumValueResolver;
import com.zhz.common.tool.mybatisplus.base.core.enums.IEnum;
import lombok.AllArgsConstructor;

/**
 * 审核状态：0：未审核，1：已审核
 *
 * @author zhouhengzhe
 * @date 2023/3/23
 */
@AllArgsConstructor
public enum AuditStateEnum implements IEnum<Integer>, EnumValueResolver<AuditStateEnum, Integer> {
    WAIT_AUDIT(0, "未审核"),
    APPROVED(1, "已审核");
    private final Integer code;

    private final String message;

    /**
     * 获取编码
     *
     * @return
     */
    @Override
    public Integer getCode() {
        return this.code;
    }

    /**
     * 获取描述
     *
     * @return
     */
    @Override
    public String getMessage() {
        return this.message;
    }
}
